#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.63])
AC_INIT([Lympia Shell Manager], [9999], [david.guglielmi@gmail.com])
AC_CONFIG_SRCDIR([src/lsm.c])
AC_CONFIG_HEADERS([config.h])

AM_INIT_AUTOMAKE
AM_PROG_CC_C_O

# Checks for programs.

# Checks for libraries.

# Checks for header files.

AC_HEADER_STDC

# Checks for typedefs, structures, and compiler characteristics.

# Checks for library functions.

dnl enable gtk user interface
AC_ARG_ENABLE(gtk,
  [  --enable-gtk	Enable the Linux default Gtk+ user interface],
  [enable_gtk="$enableval"],
  [enable_gtk="yes"])

AM_CONDITIONAL(HAVE_GTK, [ test "${enable_gtk}" = "yes" ])

if test "${enable_gtk}" == "yes"; then
  PKG_CHECK_MODULES(GTK, [gtk+-2.0 >= 2.10])
  CFLAGS="${GTK_CFLAGS} -DGTK_DISABLE_DEPRECATED -DUSE_GTK_UI"
  LDFLAGS="${GTK_LIBS}"
fi

AC_CONFIG_FILES([Makefile
                  src/Makefile])
AC_OUTPUT
